package kr.co.dongpang.android;

import kr.co.dongpang.android.R;

import com.squareup.picasso.Picasso;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

/**
 * Example of receiving a result from another activity.
 */
public class BigImageView extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// Be sure to call the super class. 
		super.onCreate(savedInstanceState);

		setContentView(R.layout.big_image_view);
		setTitle(getIntent().getStringExtra("title"));

		ImageView iv = (ImageView) findViewById(R.id.imgBig);
		
		
		String imgUrl = "http://dongpang.co.kr/images/userdif/goodsColor/" + getIntent().getStringExtra("img") + "L.jpg";
		Picasso.with(BigImageView.this).load(imgUrl).into(iv); 
		
		iv.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				finish();
			}
		});

	}

}
